# Contributor: Olliver Schinagl <oliver@schinagl.nl>
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
pkgname="ibmswtpm2"
pkgver="1332"
pkgrel=0
pkgdesc="Software implementation of the TCG TPM 2.0 specification by IBM."
url="http://ibmswtpm.sourceforge.net/ibmswtpm2.html"
arch="all"
license="MIT"
makedepends="musl-dev openssl-dev"
options="!check"  # No selftest available
source="https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm${pkgver}.tar.gz"
builddir="${srcdir}/src"

build() {
	make
}

package() {
	install -D -m 655 -t "${pkgdir}/usr/bin" \
		"${builddir}/tpm_server"
}

sha512sums="63ef597e9d958a0039b88f3f864f063546223641f8550869d21e401cd55464ccb6b3e8421354653acb9266a39b4417d930e3fe6f1825991931c2eadd4bf7b2a6  ibmtpm1332.tar.gz"
